﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000CC7 RID: 3271
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class OpenTreasureDungeonGridScRsp : IMessage<OpenTreasureDungeonGridScRsp>, IMessage, IEquatable<OpenTreasureDungeonGridScRsp>, IDeepCloneable<OpenTreasureDungeonGridScRsp>, IBufferMessage
	{
		// Token: 0x17002923 RID: 10531
		// (get) Token: 0x06009215 RID: 37397 RVA: 0x00183B97 File Offset: 0x00181D97
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<OpenTreasureDungeonGridScRsp> Parser
		{
			get
			{
				return OpenTreasureDungeonGridScRsp._parser;
			}
		}

		// Token: 0x17002924 RID: 10532
		// (get) Token: 0x06009216 RID: 37398 RVA: 0x00183B9E File Offset: 0x00181D9E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return OpenTreasureDungeonGridScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002925 RID: 10533
		// (get) Token: 0x06009217 RID: 37399 RVA: 0x00183BB0 File Offset: 0x00181DB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return OpenTreasureDungeonGridScRsp.Descriptor;
			}
		}

		// Token: 0x06009218 RID: 37400 RVA: 0x00183BB7 File Offset: 0x00181DB7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public OpenTreasureDungeonGridScRsp()
		{
		}

		// Token: 0x06009219 RID: 37401 RVA: 0x00183BC0 File Offset: 0x00181DC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public OpenTreasureDungeonGridScRsp(OpenTreasureDungeonGridScRsp other) : this()
		{
			this.eDPHOKHAPIK_ = ((other.eDPHOKHAPIK_ != null) ? other.eDPHOKHAPIK_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600921A RID: 37402 RVA: 0x00183C0C File Offset: 0x00181E0C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public OpenTreasureDungeonGridScRsp Clone()
		{
			return new OpenTreasureDungeonGridScRsp(this);
		}

		// Token: 0x17002926 RID: 10534
		// (get) Token: 0x0600921B RID: 37403 RVA: 0x00183C14 File Offset: 0x00181E14
		// (set) Token: 0x0600921C RID: 37404 RVA: 0x00183C1C File Offset: 0x00181E1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TreasureDungeonLevel EDPHOKHAPIK
		{
			get
			{
				return this.eDPHOKHAPIK_;
			}
			set
			{
				this.eDPHOKHAPIK_ = value;
			}
		}

		// Token: 0x17002927 RID: 10535
		// (get) Token: 0x0600921D RID: 37405 RVA: 0x00183C25 File Offset: 0x00181E25
		// (set) Token: 0x0600921E RID: 37406 RVA: 0x00183C2D File Offset: 0x00181E2D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600921F RID: 37407 RVA: 0x00183C36 File Offset: 0x00181E36
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as OpenTreasureDungeonGridScRsp);
		}

		// Token: 0x06009220 RID: 37408 RVA: 0x00183C44 File Offset: 0x00181E44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(OpenTreasureDungeonGridScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.EDPHOKHAPIK, other.EDPHOKHAPIK) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009221 RID: 37409 RVA: 0x00183C94 File Offset: 0x00181E94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.eDPHOKHAPIK_ != null)
			{
				num ^= this.EDPHOKHAPIK.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009222 RID: 37410 RVA: 0x00183CE9 File Offset: 0x00181EE9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009223 RID: 37411 RVA: 0x00183CF1 File Offset: 0x00181EF1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009224 RID: 37412 RVA: 0x00183CFC File Offset: 0x00181EFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.eDPHOKHAPIK_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.EDPHOKHAPIK);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06009225 RID: 37413 RVA: 0x00183D58 File Offset: 0x00181F58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.eDPHOKHAPIK_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.EDPHOKHAPIK);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06009226 RID: 37414 RVA: 0x00183DB0 File Offset: 0x00181FB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(OpenTreasureDungeonGridScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.eDPHOKHAPIK_ != null)
			{
				if (this.eDPHOKHAPIK_ == null)
				{
					this.EDPHOKHAPIK = new TreasureDungeonLevel();
				}
				this.EDPHOKHAPIK.MergeFrom(other.EDPHOKHAPIK);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06009227 RID: 37415 RVA: 0x00183E18 File Offset: 0x00182018
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06009228 RID: 37416 RVA: 0x00183E24 File Offset: 0x00182024
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 90U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.eDPHOKHAPIK_ == null)
						{
							this.EDPHOKHAPIK = new TreasureDungeonLevel();
						}
						input.ReadMessage(this.EDPHOKHAPIK);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040037AC RID: 14252
		private static readonly MessageParser<OpenTreasureDungeonGridScRsp> _parser = new MessageParser<OpenTreasureDungeonGridScRsp>(() => new OpenTreasureDungeonGridScRsp());

		// Token: 0x040037AD RID: 14253
		private UnknownFieldSet _unknownFields;

		// Token: 0x040037AE RID: 14254
		public const int EDPHOKHAPIKFieldNumber = 11;

		// Token: 0x040037AF RID: 14255
		private TreasureDungeonLevel eDPHOKHAPIK_;

		// Token: 0x040037B0 RID: 14256
		public const int RetcodeFieldNumber = 2;

		// Token: 0x040037B1 RID: 14257
		private uint retcode_;
	}
}
